const setLocal = (name, row) => {
  localStorage.setItem(name, JSON.stringify(row));
}

const getLocal = (name) => {
  let row = localStorage.getItem(name);
  return JSON.parse(row)
}

export { setLocal, getLocal }